package com.sinacom.ibuilding.beans;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

public class Role implements java.io.Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = 6932529964719252049L;

	private String id ;
   
    private Date createDate;
    private Date modifyDate;
    private String name; //通讯录分组名称
    private String chargeRes;//负责板块
    private String accessRes;//可访问板块
    private Boolean userMang;//是否通讯录管理
    private Boolean scheduleMang;//是否日程管理员
    private Boolean newsMang;//是否信息管理员
    
    private String parentId; //父节点ID root的父节点ID为0
    private String path;//节点的路径 .1.2.3.
    private Boolean msgsend; //是否有短信发送的权限
    private Boolean login;// 是否允许登录
    private Integer visituser;//访问通讯录组的权限(1.所有通讯录 2.所有组 3.相同组)
    private Boolean authed;//是否已经被授权
    
    private List roleList;
    
    private List memberList;
    
    private Boolean hasMember;
    
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getChargeRes() {
		return chargeRes;
	}
	public void setChargeRes(String chargeRes) {
		this.chargeRes = chargeRes;
	}
	public String getAccessRes() {
		return accessRes;
	}
	public void setAccessRes(String accessRes) {
		this.accessRes = accessRes;
	}
	public Boolean getUserMang() {
		return userMang;
	}
	public void setUserMang(Boolean userMang) {
		this.userMang = userMang;
	}
	public Boolean getScheduleMang() {
		return scheduleMang;
	}
	public void setScheduleMang(Boolean scheduleMang) {
		this.scheduleMang = scheduleMang;
	}
	public Boolean getNewsMang() {
		
		return new Boolean(!StringUtils.isEmpty(chargeRes));
	}
	public void setNewsMang(Boolean newsMang) {
		this.newsMang = newsMang;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Boolean getMsgsend() {
		return msgsend;
	}
	public void setMsgsend(Boolean msgsend) {
		this.msgsend = msgsend;
	}
	public Boolean getLogin() {
		return login;
	}
	public void setLogin(Boolean login) {
		this.login = login;
	}
	
	public Integer getVisituser() {
		return visituser;
	}
	public void setVisituser(Integer visituser) {
		this.visituser = visituser;
	}
	public Boolean getAuthed() {
		return authed;
	}
	public void setAuthed(Boolean authed) {
		this.authed = authed;
	}
	public List getRoleList() {
		return roleList;
	}
	public void setRoleList(List roleList) {
		this.roleList = roleList;
	}
	public List getMemberList() {
		return memberList;
	}
	public void setMemberList(List memberList) {
		this.memberList = memberList;
	}
	public Boolean getHasMember() {
		return hasMember;
	}
	public void setHasMember(Boolean hasMember) {
		this.hasMember = hasMember;
	}
	
    

}
